package com.demohomework.homeworkdemo.service;

import com.demohomework.homeworkdemo.mapper.AssignmentMapper;
import com.demohomework.homeworkdemo.pojo.Assignment;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public interface AssignmentService {
      List <Assignment> list();

    //新增作业
     void add(Assignment assignment);

    Assignment findId(Integer id);

    void update(Assignment assignment);

    void delete(Assignment assignment);

    List<Assignment> listByCourseId(Integer courseId);

    void deleteById(int id);
}
